<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js"></script>
</head>

<body>
    <div id="app">
        <!-- 简洁的批量传递 直接把需要展开传递给模板属性的对象 交给v-bind属性即可
            批量传递不要书写简写 -->
        <p v-bind="prop">段落</p>
        <p :name="prop.name">111</p>
    </div>
    <script>
        Vue.config.productionTip = false;
        const vm = new Vue({
            el: "#app",
            data() {
                return {
                    prop: {
                        name: "laowang",
                        age: 18,
                        sex: "nan",
                    },
                }
            }
        })
</script>
</body>

</html>